﻿<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Lixr.aspx.cs" Inherits="Meridium.EPCms.Lixr.Meridium.Lixr.Dialogs.Lixr" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="sv" lang="sv">
<head>
    <title>Beräkna läsbarhetsindex med Lixr</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/App_Themes/Default/styles/system.css") %>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/App_Themes/Default/styles/ToolButton.css") %>" />
    <script type="text/javascript" src="/meridium/lixr/scripts/jquery-1.3.2.min.js"></script>
    <style type="text/css">
        #content { margin:1em; }
    </style>
</head>
<script type="text/javascript">
$(document).ready(function() {
    if(dialogArguments != null) {
        var handlerPath = '/meridium/lixr/web/handlers/Lixr.ashx';
        $.ajax({
            url: handlerPath,
            dataType: 'json',
            type: "POST",
            data:  { text: dialogArguments },
            success: function(data) {
                $('#result').append('<strong>' + data.Index + '.</strong>');
            },
            error: function(XMLHttpRequest, textStatus, errorThrown) {
                alert(XMLHttpRequest.responseText);
            }
        });        
    }
});
</script>  
<body>
    <div id="content">
        <h1><EPiServer:Translate runat="server" Text="/meridium.epcms/lixr/heading" /></h1>
        <p><EPiServer:Translate runat="server" Text="/meridium.epcms/lixr/intro" /></p>
        <h2><EPiServer:Translate runat="server" Text="/meridium.epcms/lixr/subheading" /></h2>
        <p id="result"><EPiServer:Translate runat="server" Text="/meridium.epcms/lixr/result" /></p>
        <p><EPiServer:Translate runat="server" Text="/meridium.epcms/lixr/explanation" /></p>
        <table class="epistandardtable" summary="<%=Translate("/meridium.epcms/lixr/summary") %>">
            <tbody>
                <tr>
                    <th><EPiServer:Translate runat="server" Text="/meridium.epcms/lixr/lix" /></th>
                    <th><EPiServer:Translate runat="server" Text="/meridium.epcms/lixr/description" /></th>
                </tr>
                <tr>
                    <td>- 25</td>
                    <td>Barnböcker.</td>
                </tr>
                <tr>
                    <td>25 - 30</td>
                    <td>Enkla texter.</td>
                </tr>
                <tr>
                    <td>30 - 40</td>
                    <td>Normaltext / skönlitteratur.</td>
                </tr>
                <tr>
                    <td>40 - 50</td>
                    <td>Sakinformation, till exempel <a href="http://sv.wikipedia.org/wiki/Wikipedia">Wikipedia</a>.</td>
                </tr>
                <tr>
                    <td>50 - 60</td>
                    <td>Facktexter.</td>
                </tr>
                <tr>
                    <td>över 60</td>
                    <td>Svåra facktexter / forskning / avhandlingar.</td>
                </tr>
            </tbody>
        </table>    
    </div>
</body>
</html>